//
//  LWTestVC.swift
//  Swift_Weibo_HLW
//
//  Created by huanglinwang on 16/9/19.
//  Copyright © 2016年 Linwang. All rights reserved.
//

import UIKit

class LWTestVC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.blue
        
        addNavRightButton()
    }

    private func addNavRightButton() -> () {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", imageName: nil, target: self, action: #selector(pushAction))
        
    }
    
    func pushAction() {
        let testVC = LWTestVC()
        navigationController?.pushViewController(testVC, animated: true)
    }

}
